package cn.me.implement.threadpool.v3_0.reject;

import cn.me.implement.threadpool.v3_0.ThreadPool3_0;

/**
 * <h3>新建一个线程来执行这个任务的拒绝策略</h3>
 */
public class NewThreadRunPolicy implements RejectPolicy {

    @Override
    public void reject(ThreadPool3_0 threadPool, Runnable task) {
        new Thread(task, "thread-for-rejected-task").start();
    }
}
